package com.ys.entity.report;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_report].[dbo].TCO_BusinessDataStatForCount", catalog="Id")
public class TcoBusinessDataStatForCount extends BaseEntity<TcoBusinessDataStatForCount> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="CountMonth", nameJava="countMonth", typeDataBase="varchar")
	private String countMonth;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductNum", nameJava="productNum", typeDataBase="int")
	private Integer productNum;
	@YsField(nameDataBase="SubAmount", nameJava="subAmount", typeDataBase="decimal")
	private BigDecimal subAmount;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcoBusinessDataStatForCount setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCountMonth() {
		return countMonth;
	}
	public TcoBusinessDataStatForCount setCountMonth(String countMonth) {
		this.countMonth = countMonth;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TcoBusinessDataStatForCount setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public Integer getProductNum() {
		return productNum;
	}
	public TcoBusinessDataStatForCount setProductNum(Integer productNum) {
		this.productNum = productNum;
		return this;
	}
	public BigDecimal getSubAmount() {
		return subAmount;
	}
	public TcoBusinessDataStatForCount setSubAmount(BigDecimal subAmount) {
		this.subAmount = subAmount;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcoBusinessDataStatForCount setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcoBusinessDataStatForCount setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcoBusinessDataStatForCount setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcoBusinessDataStatForCount tcoBusinessDataStatForCount(
		String countMonth,
		String productCode,
		Integer productNum,
		BigDecimal subAmount,
		Integer status
			) {
		TcoBusinessDataStatForCount entity = new TcoBusinessDataStatForCount();
		entity.setCountMonth(countMonth);
		entity.setProductCode(productCode);
		entity.setProductNum(productNum);
		entity.setSubAmount(subAmount);
		entity.setStatus(status);
		return entity;
	}
}